package com.bff.gaia.unified.sdk.transforms.xjoin.client.hbase.core;



import com.bff.gaia.unified.sdk.transforms.xjoin.client.hbase.core.enums.EReplaceOpType;

import java.util.Map;

public abstract class ReplaceOperator {

	private EReplaceOpType opType;

	public ReplaceOperator(EReplaceOpType opType){
		this.opType = opType;
	}

	public String doOperator(Map<String, Object> refData){
		String replaceStr = replaceStr(refData);
		return doFunc(replaceStr);
	}

	public String replaceStr(Map<String, Object> refData){
		return "";
	}

	/**
	 * The processing function to provide custom
	 * @param replaceStr
	 * @return
	 */
	abstract String doFunc(String replaceStr);
}